package com.dd.cloud.user.entity.pres;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;

/**
 * @author zk
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Table(comment = "和顺堂药房处方详细信息表")
public class PresHstDetail {
    /**
     * 处方编码 患者处方表
     */
    @TableId(value = "tencode", type = IdType.INPUT)
    @Column(isKey = true)
    private String tencode;

    /**
     * 1内服 2外用
     */
    @Column(type = MySqlTypeConstant.TINYINT, comment = "1内服 2外用")
    private Integer medicationMethod;
    /**
     * 药房订单编号
     */
    @Column(length = 20, comment = "药房订单编号")
    private String orderNo;

    /**
     * 医生姓名
     */
    @Column(length = 20, comment = "医生姓名")
    private String doctorName;

    /**
     * 患者出生日期
     */
    @Column(comment = "患者出生日期")
    private LocalDate patientBod;

    /**
     * 患者年龄 岁
     */
    @Column(length = 4, comment = "患者年龄 岁")
    private Integer patientAge;

    /**
     * 患者年龄 月
     */
    @Column(length = 4, comment = "患者年龄 月")
    private Integer patientAgeMonth;

    /**
     * 代煎描述
     */
    @Column(length = 50, comment = "代煎描述")
    private String decoctDesc;

    /**
     * 用药描述
     */
    @Column(length = 20, comment = "用药描述")
    private String describeStr;


    /**
     * 收件人名
     */
    @Column(length = 20, comment = "收件人名")
    private String recvName;

    /**
     * 收件人手机号
     */
    @Column(length = 20, comment = "收件人手机号")
    private String recvTel;

    /**
     * 省
     */
    @Column(length = 20, comment = "省")
    private String provinceName;

    /**
     * 市
     */
    @Column(length = 20, comment = "市")
    private String cityName;

    /**
     * 区
     */
    @Column(length = 20, comment = "区")
    private String areaName;

    /**
     * 地址
     */
    @Column(length = 20, comment = "地址")
    private String address;
}
